<?php


if (!defined('BASEPATH'))
	exit('No direct script access allowed');


class m_service extends CI_Model {

	function login($nik, $password)
	{
		$cek_login = $this->db->get_where('operator', array('nik' => $nik, 'password' => $password));
		if (count($cek_login->result()) > 0) {
			foreach ($cek_login->result_array() as $data) {
				$hasil[] = $data;
			}
			return true;
		} else {
			return false;
		}
	}

}
?>